package beanstao.util.response;

import beanstao.util.json.JsonLib;

public class IntegerData extends PD
{
	private IntegerData()
	{
	}

	static IntegerData ME(int b)
	{
		IntegerData data = new IntegerData();
		data._responseData = b;
		return data;
	}

	@Override
	public String toJson()
	{
		if (null == _responseData)
		{
			this.logWarn("Response数据为空。");
			return null;
		}
		return JsonLib.fromObject(_responseData);
	}
}
